import { request } from '@/utils/request'

// 查询车辆年检列表
export function listCarAnnualInspection(query) {
  return request({
    url: '/system/carAnnualInspection/list',
    method: 'get',
    params: query
  })
}

// 查询待年检车辆列表
export function listNeedAnnualInspection(query) {
  return request({
    url: '/system/carAnnualInspection/needAnnualInspectionList',
    method: 'get',
    params: query
  })
}

// 查询车辆年检详细
export function getCarAnnualInspection(id) {
  return request({
    url: '/system/carAnnualInspection/' + id,
    method: 'get'
  })
}

// 新增车辆年检
export function addCarAnnualInspection(data) {
  return request({
    url: '/system/carAnnualInspection',
    method: 'post',
    data: data
  })
}

// 修改车辆年检
export function updateCarAnnualInspection(data) {
  return request({
    url: '/system/carAnnualInspection',
    method: 'put',
    data: data
  })
}

// 删除车辆年检
export function delCarAnnualInspection(id) {
  return request({
    url: '/system/carAnnualInspection/' + id,
    method: 'delete'
  })
}
